package com.qijian.business.domain.query;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;

import java.util.Set;

@Data
@TableName("qm_test_item")
public class TestItemQuery {
    @WhereType(filed = "id")
    private String id;
    @WhereType(filed = "code")
    private String code;
    @WhereType(filed = "name")
    private String name;
    @WhereType(filed = "attr_id")
    private String attrId;
    @WhereType(filed = "unit_id")
    private String unitId;
    @WhereType(filed = "test_criterion_id")
    private String testCriterionId;
    @WhereType(filed = "file")
    private String file;
    @WhereType(filed = "remark")
    private String remark;
    @WhereType(tableName = "bi_product_attribute", filed = "name")
    String attributeName;
    @WhereType(tableName = "bi_product_attribute_unit", filed = "name")
    String attributeUnitName;
    @WhereType(tableName = "qm_test_criterion", filed = "name")
    String testCriterionName;

    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private Set<Long> ids;
}
